<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib   uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'rollpage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--

	<link rel="stylesheet" type="text/css" href="styles.css">

	-->
<style type="text/css">

.fenye{position: absolute;right: 200px;bottom: 100px;font-size: 15px;padding-left: 10px;padding-right: 10px;}
</style>
  </head>
  
  <body>
   <div class="fenye">
          
     <c:if test="${pageIndex > 1}"> 
     <a href="selectcaoliaos?pageIndex=1">首页</a>
     <a href="selectcaoliaos?pageIndex=${pageIndex-1}">上一页</a>
      </c:if> 
     <c:if test="${ pageIndex < count}">
     <a href="selectcaoliaos?pageIndex=${pageIndex+1}">下一页</a>
     <a href="selectcaoliaos?pageIndex=${count}">尾页</a>
    
     </c:if>
      <span>第 ${pageIndex}页   /  共${count}页</span>
     </div>
     
  </body>
</html>